package com.xiaoyilin;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class RedisLockApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder().sources(RedisLockApplication.class).build().run(args);
    }

    @Bean
    public RedisKeyGenerator redisKeyGenerator() {
        return new RedisLockKeyGenerator();
    }

}
